Conditions | 2 |
Total Lines | 5 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 2 |
Changes | 0 |
1 | export default function unique(originalArray) { |
||
2 | 1 | return originalArray.filter( |
|
3 | 6 | (value, index, self) => self.indexOf(value) === index |
|
4 | ); |
||
5 | } |
||
6 |